laterDriver "(this is machine translation) article, read the title will know that the VFP driver is really a year! Because at least mdac2.7 is used now. I found MicrosoftOle db provider for Visual FoxPro 9.0, there seems to be no Chinese version, it will be used. Download and install sample data and program file, good! After the installation is complete (remember to restart Delphi), we found that the "provider" list of the adoconnection control conta
Dim conn as new ADODB. Connection
Dim RS as new ADODB. recordset
Conn. Open "driver = {Microsoft Visual FoxPro driver}; sourcetype = DBF; sourcedb = D: \ backup \"
Rs. Open "select * from TT. DBF", Conn
Rs. movefirst
For I = 0 to Rs. Fields. Count-1
TTT = TTT Rs. Fields (I). Name ","
Next I
Msgbox ttt
Do
Msgbox Rs. Fields (0). Value
Rs. movenext
Loop until Rs. EOF
Preliminary findings .....When this step is placed in COM +And
' Visual FoxPro Connection method:
Set Adocon=server.createobject ("Adodb.connection")Adocon.open "Driver={microsoft Visual FoxPro Driver};sourcetype=dbc;sourcedb=*.dbc;exclusive=no;"
' Ms Text connection method:
Set Adocon=server.createobject ("Adodb.connection")Adocon.open "Driver={microsoft Text Driver (*.txt; *.csv)};d bq=-----;" _"Extensions=asc,csv,tab,txt;persist Securityinfo=false;"
' Ms text OL
addtable Add a free table to the current databaseAPPEND add one or more new records at the end of the tableAPPEND from array add record to tableAPPEND from a file, appended to the end of the current tableAPPEND General import OLE objects from a file and put them in a common fieldAPPEND Memo Copy the contents of a text file into a memo fieldAPPEND procedures appends stored procedures in a text file to the current databaseAVERAGE computes the arithmetic mean of a numeric expression or fieldBLANK c
Data | database
The WWW web page of the Internet has a large number of two-dimensional tables, some of which are converted from a database. The author has written a program to automatically realize the database file into the Hypertext table, which is very efficient and is introduced to readers. The design idea of the program is simple: open. DBF
VFP database files are generally backed up in two forms. One is a record format, that is, a VFP table (. DBF) for storage. The advantage of this method is that the table data is backed up as is, note fields, common fields, and other special fields can be easily backed up and restored without special processing. The disadvantage is that once the record format is lost, the record cannot be recovered; the other is to back up records in text format. The a
, incorporating Fox's own characteristics, commendable.
Database events
The most beautiful feature of visual FoxPro 7 is about 60 database events, the biggest improvement to the database engine since Visual FoxPro 3. These events are of great significance in managing the e
ignoring object-oriented teaching, the same problems exist in the vast number of visual FoxPro programmers. We must understand that the Visual FoxPro is not an object-oriented language because we do not use Visual FoxPro-oriented, and that it is as naïve and ridiculous to say that the sun is eaten by the heavenly dog because it rains and does not get out of the
, not how to Chinese, the general Fox fans are not installed , so in terms of help, for friends who are unfamiliar with English, the English visual FoxPro 7 is the same as the Chinese visual FoxPro 6; Visual FoxPro 7 is not visual FoxPro 6 comparable in all respects, and the upgrade development tool is inevitable. So,
First part: Visual FoxPro OLE DB Provider
Speaking of Fox, the first impression is DBF data table, nearly 20 years of development process, do not know how many systems use DBF storage data. When you go to the. NET platform, how to access the Fox series of data is naturally a concern for many developers.
Prior to Visual FoxPro 7, Microsoft only provided Fox's ODBC driver. Using ODBC to access Fox data is i
This year is the year of the development tool Focus Update: Microsoft's Visual Studio.net,borland Delphi 6, Sybase Power Builder 8 have launched either a formal or beta version of our visual FoxPro Of course, it will not miss the industry contest good time, this May, Microsoft released visual FoxPro 7, which is the first visual member of the Fox Family in 1995 visual Fo
Comparison of Visual FoxPro with other development tools
This is really a silly topic, the choice of development tools is entirely due to the tasks faced by programmers and personal preferences decided. As long as the tools you choose are qualified for the project you are engaged in, as long as you have sufficient knowledge of the development tools to cope with the changeable, complex work, as long as the tool continues to upgrade, you have no reason
. NET language using the Common runtime (Common Runtime Language), database functions are done through the components such as external ADO. In a technologically immature now, with Visual FoxPro running on the CLR, there is bound to be only three choices: Canceling the Visual FoxPro data processing component, allowing it to process data using the component, and ad
Acknowledgement
Friends who often come to the BOE know that I have long been an amateur foxer, and as time goes on, every writing is uneasy, really worried about making some misleading remarks or laughable.
Every time I finish the first draft I will give a preview to some friends and listen to their suggestions. The Boby, the future is my three netizens are my first readers, thank them again and again read those obscure words, understanding immature thought. The Rambler, in particular, became
system, so we can achieve this by using the COM components written in. NET with visual FoxPro; tune in Visual FoxPro A. NET component. Visual FoxPro 8 will certainly provide tools or commands to facilitate this conversion.
Exchange data. There are basically three ways to exchange data, the first is to take advantage of the smooth transition between COM and. NET
Say in front
have been trying to write something about visual FoxPro 7, but not the pen. There are two reasons: one is busy, lazy to write, and then visual FoxPro 7 new features do not float on the surface, a very difficult to understand, not to mention written article.
Difficult, or to write. I am not a professional Visual FoxPro programmer, I am a fan, so I d
(iii) A new "connection"
Visual FoxPro 8 Enhancements in heterogeneous database programming, and more directly, improvements to SQL Server support. I think, at least in two aspects: one is through the CursorAdapter object to provide a more flexible than remote view, more easily programmable Cursor management object, another is based on the original concept of "connection", making "connection" processing mo
Say in front
I remember the first time I contacted COM component programming, there is the question: there is no good way to pass the dataset. We know that Visual FoxPro is the most powerful data processing system, and its cursor strong, flexible support is unmatched. Since Visual FoxPro is so powerful at data set processing, COM programming, how to simply in various types of client programs and Visual
module is executed, the menu is hidden, and the control is in the executed module. While FoxPro bar menus have the nature of multi-task, the same module can be executed repeatedly and sometimes need to use this function, but in most cases it is not required, this is because the same module or multiple modules active at the same time often process the same type of database or table, which may cause errors d
locate the appended record in the buffer with a go command with a negative number. This is useful when working with record numbers, such as to verify that the variable INRECNO is an available record number and, in a buffered state, to detect between (Inrecno,1,reccount ()) OR inrecno
Using buffering
The buffer is closed by default, and in this case VFP and FoxPro 2.X are the same when updating the table, and you must open it to use buffering. Buffer
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.